<template>
	<view class="contact">
		<image src="http://www.itcast.cn/2018czydz/images/gywmban.jpg" class="img"></image>
		<view class="info">
			<view @click="Call">联系电话：xxx-xxx-xxxx（点击拨打）</view>
			<view>校区地址：广东省广州市从化区沿江南路302号广州工程技术职业学院</view>
		</view>
		<map class="map" :longitude="longitude" :latitude="latitude" :markers="markers" scale="15" show-location="true" enable-traffic="true"></map>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				longitude:113.5845,
				latitude:23.5261,
				markers:[
					{
						longitude:113.5835,
						latitude:23.5267,
						iconPath:"../../static/icon/map.png",
						width:30,
						height:30
					},
				],
			}
		},
		onLoad(){
		},
		methods: {
			Call(){
				uni.makePhoneCall({
					phoneNumber:'xxx-xxx-xxxx',
				})
			}
		}
	}
</script>

<style lang="scss">
	.contact{
		.img{
			width:750rpx;
			height:320rpx;
		}
		.info{
			padding:10rpx 20rpx;
			font-size: 30rpx;
			view{
				line-height: 60rpx;
				border-bottom: 1px solid #eee;
			} 
		}
		.map{
			width: 750rpx;
			height: 750rpx;
		}
	}
	
</style>
